package com.aoip.telemetry.telemetry.entity.equipment;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 测站在线状态信息表
 *
 * @author chenbai
 * @version 1.0
 * @date 2022/2/21 14:24
 */
@Data
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("st_online_status")
@ApiModel(description = "测站在线状态信息表")
public class StOnlineStatusEntity implements Serializable {

    private static final long serialVersionUID = 1478045393319723408L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("数据id")
    private String id;

    @TableField(value = "st_code")
    @ApiModelProperty("测站编码")
    private String stCode;

    @TableField(value = "online_status")
    @ApiModelProperty("在线状态")
    private String onlineStatus;

    @TableField(value = "online_status_cn",exist = false)
    @ApiModelProperty("在线状态(中文)")
    private String onlineStatusCn;

    @TableField(value = "online_time")
    @ApiModelProperty("上线时间")
    private LocalDateTime onlineTime;

    @TableField(value = "offline_time")
    @ApiModelProperty("下线时间")
    private LocalDateTime offlineTime;

    @TableField(value = "communicate_ip_port")
    @ApiModelProperty("通信IP端口")
    private int communicateIpPort;

    @TableField(exist = false)
    @ApiModelProperty("测站基本信息表")
    private StInfoConfigEntity stInfoConfigEntity;

}
